<!--
 * @Author: your name
 * @Date: 2020-12-28 16:46:15
 * @LastEditTime: 2020-12-28 17:32:06
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \basiccss\box\minmaxcontent.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>max-min-content</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        body{
            width: 100vw;
            height: 100vh;
            background-color: #27ae60;
        }
        main{
            width: max-content;
            margin: auto;
        }
        div{
            margin-bottom: 20px;
            background: #2980b9;
            /* word-break: break-all; */
            padding: 10px;
        }
        
        
        
    </style>
</head>
<body>
    <main>
        <div>houdunren.com</div>
        <div>hdcms.com</div>
    </main>
</body>
</html>